home *** CD-ROM | disk | FTP | other *** search
- Lonestar@kulmbach.baynet.de wrote on 11-Mai-97:
-
- > Is there any possibility to play Anim-5 format animations?
- > Not these standard one-palette-iff-animations! I mean
- > the new iff-animations with a single palette for each picture in
- > the animation!
-
- I solved this by reading out the palette from the CMAP chunk by hand each
- frame.
-
- This is how the anim-playing routine could look like...
-
- Procedure blah
- Wload "b1.anim",10
- Wload "b2.anim",11
- Wload "b3.anim",12
- Screen 7 : For A=0 To 31 : Colour A,0 : Next
- ST=Start(10) : LE=Length(9) : ED=ST+LE
- ST=Frame Play(ST+12,1,0)
- Double Buffer : Autoback 0
- For A=0 To 653
- Gosub DRAFRAME
- Next
- ST=Start(11)+12
- For A=0 To 366
- Gosub DRAFRAME
- Next
- ST=Start(12)+12
- For A=0 To 250
- Gosub DRAFRAME
- Next
- Erase 10
- Erase 11
- Erase 12
- Screen Close 0
- Pop Proc
- DRAFRAME:
- NST=Frame Play(ST,1)
- AD=Hunt(ST To NST,"CMAP")
- If AD
- Add AD,8
- For AA=0 To 31
- C0=Peek(AD)/16 : C1=Peek(AD+1)/16 : C2=Peek(AD+2)/16 : Add AD,3
- Colour AA,Glue Colour(C0,C1,C2)
- Next
- End If
- Screen Swap : Wait Vbl
- ST=NST
- Return
-
- --
- Best Regards,
- _____ __ _ __ ______ ___ __ __ __
- |"(" \()/" ) (_)/" )(" \()/\" \(__)/" ) /" )
- | ) )/ / / /| \______)/" \ \ / /|/ /
- | (___// / / /"| |" | ( (_\__)/ /"/ /
- | | / /"\ / / | _ | | _\ / // /|/ /__
- |__| (__/___)(__/|__|(_)|__|(_)\/__/(__/ (__/(MM)
-
-
-
-
-